package com.pms.servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.pms.entity.Goal;
import com.pms.service.GoalService;

public class ToGoal extends HttpServlet {
	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		GoalService goalService = new GoalService();
		List<Goal> list = goalService.findGoalList();
		if(list != null){
			request.setAttribute("goalList", list);
		}
		request.getRequestDispatcher("/WEB-INF/goal.jsp").forward(request, response);
	}

}
